package team.yidong.fenda.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xuanlong on 2018/3/7.
 */
@Service
public interface KnowledgeService {
    JSONArray findKnowledgeByHospitalId(Integer hospitalId);

    void addKnowledge(Integer hospitalId, String headline, String content, List<String> imgPathList);

    void deleteKnowledge(Integer hospitalId, Integer knowledgeId);

    JSONObject findById(Integer knowledgeId);

    void updateKnowledge(Integer knowledgeId, String headline, String content);
}
